Note: This statement is named Get Number of Items in the Add Statement dialog box.
Returns the number of items in a control.
Syntax
GetNumItems()
Supported objects
ComboBox, Grid, Item, ListBox, ListView, Menu, PopupMenu, Row, TabBar, ToolBar, Tree
Return value
| Value | Description |
|---|---|
| Value | Number of items in the control. |
Example
myItems = Window("Feedback").TabBar("Menu").GetNumItems()
For itemIndex = 1 to myItems
Window("Feedback").TabBar("Menu").Item("Send")Select()
Next itemIndex